<!DOCTYPE html>
<html>
<head>

<meta charset="UTF-8">

<!-- 引入样式 -->
<link rel="stylesheet"
	href="https://unpkg.com/element-ui@2.4.10/lib/theme-chalk/index.css">

<script src="https://unpkg.com/vue@2.5.17/dist/vue.js"></script>
<script src="https://unpkg.com/element-ui@2.4.10/lib/index.js"></script>
<script src="https://unpkg.com/axios@0.18.0/dist/axios.min.js"></script>
<script src="js/login.js"></script>


<title>Login</title>


<style>
  /*.el-header, .el-footer {
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    color: #333;
    text-align: center;
    line-height: 160px;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
  
  


  */
  
  	.borderStyle {background-color: #fff;width: 158px;border: 1px #dbdbdb solid;padding: 30px 0 10px 30px;}
</style>
</head>

<body>

	<div id="app" style="margin:100px 0px 0px 500px;width: 500px; text-align: center">


		<el-container > 
        <el-header class="block" style="line-height:50px">欢迎使用系统</el-header> 
      <el-main class="block">
     		 <el-alert :model="alertInfo" title="用户名密码错误"  type="error"  :closable="false" v-show="alertInfo.isShow"  center> </el-alert>
             <el-form  :model="loginForm" class="" >
             
		               			 <el-form-item label="用户名" >
								    <el-input v-model="loginForm.Name" placeholder="用户名"  name="username"></el-input>
								  </el-form-item>
								   <el-form-item label="密码">
								    <el-input v-model="loginForm.Pwd" placeholder="密码"  type="password" name="password"></el-input>
								  </el-form-item>
								  <el-form-item>
								    <el-button type="primary"    @click="login" >登录</el-button>
								  </el-form-item>
								  
					    </el-form>
      </el-main> 
    </el-container>

	</div>

</body>



<script>

var loginFormProp = {
	      data() {
	    	  return { 
            		loginForm:{
				      Name:'test',
				      Pwd:'123456'
				   },
				   alertInfo:{
					   isShow:false
		    	  	   }
	    	  
	    		}
	      },
	    methods: {
            login(){
				  return axiosFormSubmit();
			},
			submit: function() {
				console.log(this.loginForm);
			}
		 
	      }

		}



var Ctor1 = Vue.extend(loginFormProp);
var loginFormApp = new Ctor1().$mount('#app'); 

</script>

<script>
//native-type="submit"
//action="/login" method="post" 

//@click="login()"




</script>
</html>